package com.ossjk.qlh.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色部门表
 * </p>
 *
 * @author chair
 * @since 2020-02-07
 */
@TableName("role_department")
public class RoleDepartment extends Model<RoleDepartment> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private String id;
	/**
	 * 部门id
	 */
	@ApiModelProperty(value = "部门id" )
	@TableField("did")
	private String did;
	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id" )
	@TableField("rid")
	private String rid;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDid() {
		return did;
	}

	public void setDid(String did) {
		this.did = did;
	}

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "RoleDepartment{" + ", id=" + id + ", did=" + did + ", rid=" + rid + "}";
	}
}
